//
//  UITableView+dequeueOrInitCell.m
//  JZRJAPPT
//
//  Created by mac on 16/5/8.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "UITableView+dequeueOrInitCell.h"

@implementation UITableView (dequeueOrInitCell)

- (id)dequeueOrInitCellWithNibName:(NSString*)nibName identifier:(NSString*)reuseIdentifier
{
    UITableViewCell* cell = [self dequeueReusableCellWithIdentifier:reuseIdentifier];
    
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:nibName owner:nil options:nil] lastObject];
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    return cell;
}



@end
